package com.coco.dao;

import java.sql.SQLException;
import java.util.List;

import com.coco.model.User;

public interface UserDao {

	int register(String sql, Object...params) throws SQLException;

	User findByName(String uname) throws SQLException;

	List<User> findByOthers(String sql, Object...params) throws SQLException;

	int update(String sql, Object...params) throws SQLException;

	User findByNameAndPwd(String uname, String upwd) throws SQLException;

	void add(User u);

}

	